package org.lex.ftp.ui.actions;

import java.awt.Window;
import java.awt.event.ActionEvent;

import org.lex.ftp.FTP;
import org.lex.ftp.ui.speed.SpeedDialog;
import org.lex.swing.ActionBuilder;


public class SpeedAction extends ActionBuilder {
	public SpeedAction() {
		super();
		this.setName("Speed ...");
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		Window root = FTP.getApplication().getRootWindow();
		SpeedDialog dialog = new SpeedDialog(root);
		dialog.setLocationRelativeTo(root);
		dialog.setAlwaysOnTop(false);
		dialog.setVisible(true);
	}
}
